﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Accounts
    {
        public double balance;

        public Accounts(double Balance) {
            this.balance = Balance;
        }

            
            public void outPut()
        {
            Console.WriteLine("您的余额为{0}",balance);
        }
        public void cunMoney() {
            double sum = Convert.ToDouble(Console .ReadLine ());
            balance = balance +sum;
            Console.WriteLine("您的余额为{0}", balance); 
        }
        public void quMoney() {
            double sam = Convert.ToDouble(Console.ReadLine());
            balance = balance - sam;
            Console.WriteLine("您的余额为{0}", balance);
        }
        public void chaMoney()
        {
            Console.WriteLine("您的余额为{0}", balance);
        }
    }
}
